About 1086 letters
About 5 minutes
<slot>
The <slot> HTML element—part of the Web Components technology suite—is a placeholder inside a web component that you can fill with your own markup, which lets you create separate DOM trees and present them together.
name
: The slot's name. When the slot's containing component gets rendered, the slot is rendered with the custom element's child that has a matching slot
attribute. A named slot is a <slot>
element with a name
attribute. Unnamed slots have the name default to the empty string. Names should be unique per shadow root: if you have two slots with the same name, all of the elements with a matching slot
attribute will be assigned to the first slot with that name. Created in 5/27/2025
Updated in 5/27/2025